//
//  TLUnlockSSVipView.m
//  WXReader
//
//  Created by huaya on 2025/9/6.
//  Copyright © 2025 Andrew. All rights reserved.
//

#import "TLUnlockSSVipView.h"
#import "TLRechargeViewController.h"
@interface TLUnlockSSVipView ()
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UIButton *unlockBtn;
@property (weak, nonatomic) IBOutlet UIButton *closeBtn;

@end

@implementation TLUnlockSSVipView

+ (instancetype)createView {
    return [[[NSBundle mainBundle] loadNibNamed:@"TLUnlockSSVipView" owner:nil options:nil] lastObject];
}
- (IBAction)unlockAction:(id)sender {
    MK_BLOCK_EXEC(self.gotoVipBlock);
}

- (void)awakeFromNib{
    [super awakeFromNib];
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = 12;
    
    self.layer.shadowColor = [UIColor blackColor].CGColor;
    self.layer.shadowOffset = CGSizeMake(0, 3);
    self.layer.shadowOpacity = 1;
    self.layer.shadowRadius = 6;
    
    self.unlockBtn.layer.masksToBounds = YES;
    self.unlockBtn.layer.cornerRadius = 32/2;
    
}
- (IBAction)closeAction:(id)sender {
    
    self.hidden = YES;
    MK_BLOCK_EXEC(self.closeBlock);
}
- (void)setTitleStr:(NSString *)titleStr{
    
    if (titleStr) {
        _titleStr = titleStr;
        _titleLab.text = [NSString stringWithFormat:@"Last read: %@",titleStr];
    }
    
}

@end
